package com.scau402.system.service;

import java.util.List;

import com.scau402.common.core.domain.entity.SysUser;
import com.scau402.system.domain.WmsOutboundOrder;

/**
 * 商品出库单Service接口
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
public interface IWmsOutboundOrderService 
{
    /**
     * 查询商品出库单
     * 
     * @param id 商品出库单主键
     * @return 商品出库单
     */
    public WmsOutboundOrder selectWmsOutboundOrderById(Long id);

    /**
     * 查询商品出库单列表
     * 
     * @param wmsOutboundOrder 商品出库单
     * @return 商品出库单集合
     */
    public List<WmsOutboundOrder> selectWmsOutboundOrderList(WmsOutboundOrder wmsOutboundOrder);

    /**
     * 新增商品出库单
     * 
     * @param wmsOutboundOrder 商品出库单
     * @return 结果
     */
    public int insertWmsOutboundOrder(WmsOutboundOrder wmsOutboundOrder);

    /**
     * 修改商品出库单
     * 
     * @param wmsOutboundOrder 商品出库单
     * @return 结果
     */
    public int updateWmsOutboundOrder(WmsOutboundOrder wmsOutboundOrder);

    /**
     * 批量删除商品出库单
     * 
     * @param ids 需要删除的商品出库单主键集合
     * @return 结果
     */
    public int deleteWmsOutboundOrderByIds(Long[] ids);

    /**
     * 删除商品出库单信息
     * 
     * @param id 商品出库单主键
     * @return 结果
     */
    public int deleteWmsOutboundOrderById(Long id);

    public String getMaxCode();

    public String getOutboundOrderCode(String loginUserTenantCode, String userCode) throws InterruptedException;

    public WmsOutboundOrder selectWmsInboundOrderByOrderCode(String orderCode);

    String getNewCode(SysUser user) throws InterruptedException;
}
